package com.boarsoft.boar.office.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.boarsoft.boar.sys.entity.SysUser;

/**
 * 
 * 
 * @author Mac_J
 */
public class MeetingInfo implements Serializable {
	private static final long serialVersionUID = 1250040289364164550L;

	/** 草稿 */
	public static final short STATUS_DRAFT = 1;
	/** 已提交 */
	public static final short STATUS_SCHEDULED = 2;
	/** 已完成 */
	public static final short STATUS_DONE = 3;
	/** 已取消 */
	public static final short STATUS_CANCEL = 4;
	/** 已关闭 */
	public static final short STATUS_CLOSED = 5;
	
	/** 通过 */
	public static final short RESULT_YES = 1;
	/** 不通过 */
	public static final short RESULT_NO = 2;

	protected String id;
	protected String workId;
	protected String title;
	protected String url;
	protected short type;
	protected short priority;
	protected String memo;
	// @Pattern("")
	protected String startTime;
	protected String endTime;
	/** 发起人 */
	protected String ownerId;
	protected short status = STATUS_DRAFT;
	protected String lastTime;
	
	/** 这个会议将推动哪个工作流 */
	protected String flowId;
	/** 这个会议将推动哪个工作流实例 */
	protected String flowExeId;
	/** 会议结果（通过还是不通过） */
	protected short result;
	
	/** 不映射 */
	protected Set<SysUser> users = new HashSet<SysUser>();
	/** 不映射 */
	protected SysUser owner;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public short getType() {
		return type;
	}

	public void setType(short type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	public short getPriority() {
		return priority;
	}

	public void setPriority(short priority) {
		this.priority = priority;
	}

	public SysUser getOwner() {
		return owner;
	}

	public void setOwner(SysUser owner) {
		this.owner = owner;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Set<SysUser> getUsers() {
		return users;
	}

	public void setUsers(Set<SysUser> users) {
		this.users = users;
	}

	public String getWorkId() {
		return workId;
	}

	public void setWorkId(String workId) {
		this.workId = workId;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getFlowId() {
		return flowId;
	}

	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}

	public String getFlowExeId() {
		return flowExeId;
	}

	public void setFlowExeId(String flowExeId) {
		this.flowExeId = flowExeId;
	}

	public void setResult(short result) {
		this.result = result;
	}

	public short getResult() {
		return result;
	}
}